/ Assembly List / LJCNetCommon / NetCommon / GetString

Namespace - LJCNetCommon


Parameters
value - The value object.

Returns

The trimmed string value or null if the object is null.

Syntax

C#
public static String GetString(Object value)

Gets a trimmed string value from an object. (E)

Example

C#
using LJCNetCommon;
        
// Gets a trimmed string value from an object.
private static void GetString()
{
  // Simulates an Object value like that received from a DataTable.
  string setup = "3";
  object obj = setup;

  // Gets a string value from an object.
  string value = NetCommon.GetString(obj);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.